<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>表格</title>
    <link rel="stylesheet" href="/Home/frame/layui/css/layui.css">
    <link rel="stylesheet" href="/Home/frame/static/css/style.css">
    <link rel="icon" href="/Home/frame/static/image/code.png">
</head>
<body class="body">
<a class="layui-btn layui-btn-warm" href="javascript:;"><i class="layui-icon">&#xe62e;</i>添加</a>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
    <legend>店铺列表</legend>
</fieldset>

<table class="layui-table" lay-skin="line">
    <colgroup>
        <col width="150">
        <col width="150">
        <col width="200">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>店铺</th>
        <th>链接</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    @foreach($shop as $value)
    <tr>
        <td>{{$value->shopname}}</td>
        <td>{{$value->shop_link}}</td>
        <td></td>
    </tr>
    @endforeach
    </tbody>
</table>
<script type="text/javascript" src="/Home/frame/layui/layui.js"></script>
<!-- <script src="/Admin/assets/js/jquery-1.8.3.min.js"></script> -->
<script type="text/javascript">

layui.use(['layer','jquery'], function () {
    var layer       = layui.layer
        ,vipNav     = layui.vip_nav
        ,$          = layui.jquery;
    
    $('.layui-btn-warm').click(function(){
        $.ajax({
            type:"get",
            url:"/h_s_add",
            success:function(msg){
                if(msg){
                    $(".body").html(msg);
                }else {
                    
                    alert('无输出');
                }
            }
        });
    });

});

</script>
</body>
</html>